package com.xbongbong.paas.domain.dao;

import com.xbongbong.paas.domain.entity.CoverPaasMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 重复规则Dao层
 * @author yanglei
 * @date 2022/11/7 16:52
 */
@Mapper
public interface CoverPaasMenuDao {

    Integer insert(CoverPaasMenuEntity entity);

    Integer insertBatch(@Param("list") List<CoverPaasMenuEntity> list);

    Integer update(CoverPaasMenuEntity entity);

    //List<CoverPaasMenuEntity> findEntities(@Param("param")Map<String,Object> param);

    List<CoverPaasMenuEntity> getListByCorpid(@Param("corpid") String corpid);

    Integer updateBatch(@Param("list") List<CoverPaasMenuEntity> list,@Param("corpid") String corpid);

    Integer deleteByMenuIds(@Param("list") List<Long> menuIds,@Param("corpid") String corpid);
}
